package com.example.ai;

import org.springframework.ai.chat.prompt.Prompt;
import org.springframework.ai.chat.prompt.PromptTemplate;

import java.util.Map;


public class PromptTest {
    public static void main(String[] args) {
        PromptTemplate promptTemplate = new PromptTemplate("Tell me a {adjective} joke about {topic}");
        Prompt prompt = promptTemplate.create(Map.of("adjective", "happy", "topic", "working"));

        System.out.println(prompt.getContents());

    }
}
